import request from '@/utils/request'

// 查询师资信息列表
export function listTeacherInfo(query) {
  return request({
    url: '/teacher/info/new/list',
    method: 'get',
    params: query
  })
}

// 查询师资信息详细
export function getTeacherInfo(id) {
  return request({
    url: '/teacher/info/new/' + id,
    method: 'get'
  })
}

// 新增师资信息
export function addTeacherInfo(data) {
  return request({
    url: '/teacher/info/new',
    method: 'post',
    data: data
  })
}

// 修改师资信息
export function updateTeacherInfo(data) {
  return request({
    url: '/teacher/info/new',
    method: 'put',
    data: data
  })
}

// 删除师资信息
export function delTeacherInfo(id) {
  return request({
    url: '/teacher/info/new/' + id,
    method: 'delete'
  })
}